package com.yang.mall.Controller;

import com.yang.mall.service.ICategoryService;
import com.yang.mall.vo.ResponseVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Slf4j
public class CategoryController {

    @Autowired
    private ICategoryService categoryService;
    @PostMapping("/category")
    public ResponseVo getCategory() {
        return categoryService.selectAll();
    }
}
